package com.pig4cloud.pig.hu.entity;

import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(description = "活动信息实体类")
@TableName("car_activity") // 这里替换为实际的表名，假设是activity
public class Activity implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "activity_id", type = IdType.ASSIGN_ID)
	@Schema(description = "活动id")
	private Long activityId;

	@TableField(value = "activity_name")
	@Schema(description = "活动名称")
	private String activityName;

	@TableField(value = "start")
	@Schema(description = "活动开始时间")
	private String start;

	@TableField(value = "end")
	@Schema(description = "活动结束时间")
	private LocalDateTime end;

	@TableField(value = "status")
	@Schema(description = "活动状态")
	private String status;

	@TableField(value = "title")
	@Schema(description = "活动标题")
	private String title;

	@TableField(value = "picture")
	@Schema(description = "活动图片")
	private String picture;

	@TableField(value = "content")
	@Schema(description = "活动内容")
	private String content;

	@TableField(value = "create_by")
	@Schema(description = "创建人")
	private String createBy;

	@TableField(value = "create_time")
	@Schema(description = "创建时间")
	private LocalDateTime createTime;
}